<template>
  <div class="welcome-container">
    <div class="welcome-content">
      <div class="welcome-image-wrapper">
        <img
            src="../../assets/dzyyds.jpg"
            alt="颜途地陪"
            class="welcome-image"
        />
      </div>
      <div class="welcome-text">
        <h1 class="welcome-title">
          <span class="welcome-highlight">颜途</span> 地陪旅游服务平台
        </h1>
        <p class="welcome-subtitle">
          专业 · 贴心 · 便捷
        </p>
        <p class="welcome-description">
          为您提供最优质的地陪服务，让每一次旅行都成为美好回忆。<br>
          专业的导游团队，贴心的服务体验，让您的旅途更加精彩纷呈。
        </p>
        <div class="welcome-features">
          <div class="feature-item">
            <i class="el-icon-location-outline feature-icon"></i>
            <span>本地专业导游</span>
          </div>
          <div class="feature-item">
            <i class="el-icon-user feature-icon"></i>
            <span>一对一服务</span>
          </div>
          <div class="feature-item">
            <i class="el-icon-star-off feature-icon"></i>
            <span>五星好评保障</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'GuideMain'
}
</script>

<style scoped>
.welcome-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(168, 192, 235, 0.2);
  backdrop-filter: blur(10px);
  text-align: center;
}

.welcome-image-wrapper {
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}

.welcome-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(168, 192, 235, 0.2);
  transition: transform 0.3s ease;
}

.welcome-image:hover {
  transform: scale(1.02);
}

.welcome-text {
  text-align: center;
  width: 100%;
}

.welcome-title {
  color: #409eff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 20px 0;
  text-align: center;
}

.welcome-highlight {
  position: relative;
  color: #409eff;
  font-weight: 700;
}

.welcome-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, #409eff, #67c23a);
  border-radius: 2px;
}

.welcome-subtitle {
  color: #409eff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 15px 0;
  text-align: center;
}

.welcome-description {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 25px 0;
  max-width: 800px;
  text-align: center;
  /* 添加以下样式确保两行文本对齐 */
  display: inline-block;
  text-align: center;
  word-wrap: break-word;
}

.welcome-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(135deg, #409eff, #67c23a);
  color: white;
  border-radius: 15px;
  min-width: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(64, 158, 255, 0.4);
}

.feature-icon {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .welcome-content {
    padding: 20px;
    margin: 10px;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .welcome-description {
    font-size: 1rem;
  }

  .welcome-features {
    gap: 20px;
  }

  .feature-item {
    min-width: 120px;
    padding: 15px;
  }
}
</style>
